package yangsw87.basic;

public class J17_Performance implements J17_PerformanceService{

	// 재정의
	
	private J17_PerformanceVO[] pfdata = new J17_PerformanceVO[10];
	private int pos=-1; // 배열의 몇번째 있는가를 알기 위해
	
	@Override
	public boolean addPerformance(J17_PerformanceVO pf) {
		pfdata[++pos] = pf;
		return false;
	}
	
	@Override
	public String readPerformance() {
		String result = "";
		J17_PerformanceVO pfvo;
		for(int i=0;i<=pos;++i){
			pfvo = pfdata[i];
			result += pfvo.toString() + "\n";
		}
		return result;
	}

	@Override
	public boolean cancelPerformance(J17_PerformanceVO pf) {
		// TODO Auto-generated method stub
		return false;
	}



}
